import { TResponse } from '@/typings'
import { IRoleEntity } from '@/views/sys/role/RoleTable/RoleForm'
import { get } from '..'
import { IBaseVo } from './type'

const prefixUrl = '/sys/role/'

export const getById = (formId: string): Promise<TResponse<IBaseVo<IRoleEntity>>> => {
  return get(`${prefixUrl}getById`, { formId })
}
